Repository navigation
fix: make make extract_translations run again - #39421
Draft
kdmccormick wants to merge 1 commit into
Draft
kdmccormick wants to merge 1 commit into
kdmccormick wants to merge 1 commit into
Conversation
The nightly extraction in openedx-translations has not produced a new edx-platform catalog since 2026-01-31. Its first failure (no uv on the job's PATH) is fixed over there; running the target locally through uv then hits two more problems, both fixed here: 1. xgettext fails on the vendored pdf.js wasm fallbacks added in June: "common/static/js/vendor/pdfjs/web/wasm/openjpeg_nowasm_fallback.js:6: error: too many open XML elements". Ignore common/static/js/vendor in the i18n config. Nothing under it contributed a string to the last good catalog. 2. The third-party (wiki) step runs pybabel with the `django` template extractor, which comes from enmerkar. The platform only had enmerkar transitively through enmerkar-underscore, which dropped that dependency in 2.4.1 (picked up 2026-08-31). Declare it directly. With both, the full target (django, djangojs, underscore, wiki, merge) completes and the resulting catalogs compile. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Nov 23, 2026
Draft
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The nightly extraction in openedx-translations has not produced a new edx-platform catalog since 2026-01-31. Its first failure, no uv on the job's PATH, is fixed in openedx/openedx-translations#85822. Running the target locally through uv then hits two more problems, both fixed here:
xgettextfails on the vendored pdf.js wasm fallbacks added in June:common/static/js/vendor/pdfjs/web/wasm/openjpeg_nowasm_fallback.js:6: error: too many open XML elements. Ignorecommon/static/js/vendorin the i18n config. Nothing under it contributed a string to the last good catalog.djangotemplate extractor, which comes fromenmerkar. The platform only hadenmerkartransitively throughenmerkar-underscore, which dropped that dependency in 2.4.1. Declare it directly.With both, the full target (django, djangojs, underscore, wiki, merge) completes and the resulting catalogs compile.
Merge considerations
Supporting Info
enmerkar-underscore2.4.1 taken, droppingenmerkar: fd1b9553e6translations/xblocks-core/xblock_problem: cd733fee2fTesting
make extract_translations. Expect it to complete; on master it fails at the djangojs step, and with only the config change it fails at the wiki step.msgfmt --check -o /dev/null conf/locale/en/LC_MESSAGES/django.poand the same fordjangojs.po. Both should compile.encatalogs withtranslations/edx-platform/conf/locale/enin openedx-translations. Expected locally:django.po2440 msgids against the frozen 2501, withxmodule/references down from 652 to 543 andwikireferences unchanged at 103;djangojs.po1879 against 2110; no references underjs/vendor.I ran all three locally. No CI job in this repo exercises extraction; the real check is the nightly run in openedx-translations after both PRs merge.